package com.woniuxy.intellihome.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.intellihome.entity.VCollect;
import com.woniuxy.intellihome.mapper.VCollectMapper;
import com.woniuxy.intellihome.service.VCollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jobob
 * @since 2021-08-11
 */
@Service
public class VCollectServiceImpl extends ServiceImpl<VCollectMapper, VCollect> implements VCollectService {
    @Autowired
    private VCollectMapper vCollectMapper;
    @Override
    public List<VCollect> getAllByUserId(int userId) {
        return vCollectMapper.getAllByUserId(userId);
    }
}
